﻿@model HRM.DAL.DAO.Project
@{
    ViewBag.Title = "Create new project";
}
<h2>
    Create</h2>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Project</legend>
        <div class="editor-label">
            @Html.LabelFor(model => model.ProjectName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ProjectName)
            @Html.ValidationMessageFor(model => model.ProjectName)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.startingDate)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.startingDate)
            @Html.ValidationMessageFor(model => model.startingDate)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.ClosingDate)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ClosingDate)
            @Html.ValidationMessageFor(model => model.ClosingDate)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.TotalEmployee)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.TotalEmployee)
            @Html.ValidationMessageFor(model => model.TotalEmployee)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.ProjectDescription)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ProjectDescription)
            @Html.ValidationMessageFor(model => model.ProjectDescription)
        </div>
        <p>
            <input type="submit" class="submitButton" value="Create" />
        </p>
    </fieldset>
}
<div>
    @Html.ActionLink("Back to List", "Index")
</div>
